package com.system.service;

import com.system.po.LeaderCustom;
import com.system.po.TeacherCustom;

import java.util.List;

/**
 * 领导业务层.
 */
public interface LeaderService {

    //根据id更新领导信息
    void updateById(Integer id, LeaderCustom leaderCustom) throws Exception;

    //根据id删除领导信息
    void removeById(Integer id) throws Exception;

    //获取分页查询领导信息
    List<LeaderCustom> findByPaging(Integer toPageNo) throws Exception;

    //保存领导信息
    Boolean save(LeaderCustom leaderCustom) throws Exception;

    //获取领导总数
    int getCountLeader() throws Exception;

    //根据id查询
    LeaderCustom findById(Integer id) throws Exception;

    //根据名字查询
    List<LeaderCustom> findByName(String name) throws Exception;

    //获取全部领导
    List<LeaderCustom> findAll() throws Exception;
}
